package com.chen.wow.event;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(EventConfig.class);
		DemoEventPublisher demoPublisher = context.getBean(DemoEventPublisher.class);
		demoPublisher.publish("你好");
		
		context.close();
	}

}
